<div class="panel panel-default mt20">
  <div class="panel-body">
    <div class="col-sm-12">
      <div class="row ">
        <div class="col-sm-2">
          <input type="text" class="form-control" ng-model="searchform.name" placeholder="景区名称">
        </div>
        <div class="col-sm-2">
          <input type="text" class="form-control" ng-model="searchform.code" placeholder="景区编号">
        </div>
        <div class="col-sm-2 pull-right">
          <button class="btn btn-block btn-info" ng-click="load(1)">立即搜索</button>
        </div>
      </div>
    </div>
  </div>
</div>

<div class="panel panel-default mt20">
  <div class="panel-body">
    <table class="table table-condensed table-hover table-bordered">
      <thead>
        <tr>
          <th class="col-md-3 text-center">景区信息</th>
          <th class="col-md-2 text-center">景区地址</th>
          <th class="col-md-1 text-center">星级</th>
          <th class="col-md-1 text-center">类型</th>
          <th class="col-md-1 text-center">操作</th>
        </tr>
      </thead>
      <tbody>
        <tr ng-repeat="obj in list">
          <td>{{obj.name}}（{{obj.code}}）</td>
          <td>{{obj.address}}</td>
          <td class="text-center">{{obj.star}}</td>
          <td class="text-center">{{searchform.view_type[obj.type]}}</td>
          <td class="text-center">
            <a ng-click="setAct(obj)" class="btn btn-success btn-xs">设置活动</a>
          </td>
        </tr>
      </tbody>
    </table>
    <div class="text-right">
      <pagination total-items="totalItems" ng-model="currentPage" ng-change="load(currentPage)" previous-text="上一页" 
      next-text="下一页" first-text="首页" last-text="尾页" max-size="5" boundary-links="true" 
      rotate="false" items-per-page="itemsPerPage" class="m-t-none m-b"></pagination>
    </div>
  </div>
</div>